package com.ruoyi.device.service;

import com.ruoyi.device.domain.DeviceAlarmHistory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.device.domain.req.alarm.AlarmHistoryAddReq;
import com.ruoyi.device.domain.req.alarm.AlarmHistoryEditReq;
import com.ruoyi.device.domain.req.alarm.AlarmHistoryReq;

import java.util.List;

/**
* @author 11452
* @description 针对表【device_alarm_history(设备报警历史表)】的数据库操作Service
* @createDate 2023-12-07 14:16:31
*/
public interface DeviceAlarmHistoryService extends IService<DeviceAlarmHistory> {

    /**
     * 设备报警历史记录查询
     * @param req
     * @return
     */
    List<DeviceAlarmHistory> search(AlarmHistoryReq req);

    /**
     * 新增报警记录
     * @param req
     * @return
     */
    Boolean add(AlarmHistoryAddReq req);

    /**
     * 报警处理
     * @param req
     * @return
     */
    Boolean edit(AlarmHistoryEditReq req);
}
